package com.kmust.dream.wanderingdream.order.service;

import com.kmust.dream.wanderingdream.comm.pojo.ResultBean;
import com.kmust.dream.wanderingdream.order.dto.OrderStatus;
import com.kmust.dream.wanderingdream.order.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kmust.dream.wanderingdream.order.entity.OrderPre;

import java.util.List;

/**
 *
 */
public interface OrderService extends IService<Order> {

    ResultBean createOrder(OrderPre orderPre);

    ResultBean updateOrder(Order order);

    ResultBean deleteOrderByOrderId(Integer orderId);

    ResultBean updateOrderStatus(Integer orderId);

    ResultBean getNonePayOrders();

    ResultBean getNoneSendOrders();

    ResultBean getNoneReceiveOrders();

    ResultBean getAlreadyOrders();

    ResultBean cancelOrder(Integer orderId);

    ResultBean getCancelOrders();

    ResultBean getOrdersByStatus(String username, OrderStatus orderStatus);

    ResultBean getOrdersByStatus(OrderStatus orderStatus);

    ResultBean handler(List<Order> list);

    ResultBean changePayStatus(Integer orderId);
}
